package com.k2data.k2app.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.k2data.k2app.domain.serializer.DictDTOSerializer;
import lombok.Data;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Map;

/**
 * @author lidong9144@163.com 17-3-20.
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonSerialize(using = DictDTOSerializer.class)
public class DictDTO implements Serializable {

    @Transient
    private static final long serialVersionUID = -5886958087248719741L;

    private Long id;
    private String label;
    private String value;
    private String type;
    private String typeCn;
    private Map<String, String> extTrans;
    private Map<String, String> ext;

    private Long parentId;
    private String valueEn;

    private Integer sort;

}
